package com.ly.heart.mapper;

import java.util.List;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.ly.heart.domain.KingApplyAllocateEntity;
import com.ly.heart.domain.dto.KingApplyAllocateDto;
import com.ly.heart.domain.vo.KingApplyAllocateVo;

/**
 * 调拨申请单Mapper接口
 * 
 * @author wutao
 * @date 2024-08-12
 */
public interface KingApplyAllocateMapper extends BaseMapper<KingApplyAllocateEntity>
{
    /**
     * 查询调拨申请单
     * 
     * @param id 调拨申请单ID
     * @return 调拨申请单
     */
    public KingApplyAllocateEntity selectKingApplyAllocateById(String id);

    /**
     * 查询调拨申请单列表
     * 
     * @param kingApplyAllocate 调拨申请单
     * @return 调拨申请单集合
     */
    public List<KingApplyAllocateEntity> selectKingApplyAllocateList(KingApplyAllocateEntity kingApplyAllocate);

    /**
     * 新增调拨申请单
     * 
     * @param kingApplyAllocate 调拨申请单
     * @return 结果
     */
    public int insertKingApplyAllocate(KingApplyAllocateEntity kingApplyAllocate);

    /**
     * 修改调拨申请单
     * 
     * @param kingApplyAllocate 调拨申请单
     * @return 结果
     */
    public int updateKingApplyAllocate(KingApplyAllocateEntity kingApplyAllocate);

    /**
     * 删除调拨申请单
     * 
     * @param id 调拨申请单ID
     * @return 结果
     */
    public int deleteKingApplyAllocateById(String id);

    /**
     * 批量删除调拨申请单
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteKingApplyAllocateByIds(String[] ids);

    IPage<KingApplyAllocateVo> selectKingApplyAllocateListPage(KingApplyAllocateDto kingApplyAllocateDto);
}
